//表单或者grid的主键
export function getFieldItemMainKey(key) {
  switch (key) {
    case 'grid':
      return 'dataIndex';
    case 'form':
      return 'name';
    case 'tab':
      return 'tabid';
    case 'fieldset':
      return 'fieldsetid';
    default:
      return 'name';
  }
}
export var mainkeys = ['dataIndex', 'name', 'tabid', 'fieldsetid'];

// layType 枚举类型
export var layTypeEnum = /*#__PURE__*/function (layTypeEnum) {
  layTypeEnum[layTypeEnum["form"] = 0] = "form";
  layTypeEnum[layTypeEnum["grid"] = 1] = "grid";
  layTypeEnum[layTypeEnum["tabPanel"] = 2] = "tabPanel";
  layTypeEnum[layTypeEnum["fieldset"] = 3] = "fieldset";
  return layTypeEnum;
}({});